package com.supremex.aisupremex.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supremex.aisupremex.web.dao.TopicMapper;
import com.supremex.aisupremex.web.entity.Topic;
import com.supremex.aisupremex.web.service.TopicService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 题目表 服务实现类
 * </p>
 *
 * @author zkx
 * @since 2024-04-16
 */
@Service
public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic> implements TopicService {

	@Override
	public List<Topic> listRandomTopics(Integer num) {
		return baseMapper.listRandomTopics(num);
	}
}
